*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    font-family:'Arial' ,sans-serif;
    background-color: black;
    color: white;
}
header{
    display: flex;
    top: 0;
    left: 0;
    width:100% ;
    justify-content:space-between ;
    align-items:center;
    padding: 20px 60px;
    background-color:#0e0e0e;
    color: #00ffee;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
    position: fixed;
    z-index: 1000;
}
.burger-menu {
    position: relative;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.burger-icon {
    position: relative;
    width: 100%;
    height: 100%;
}

.burger-icon span {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #00ffee;
    transition: all 0.3s ease-in-out;
}

.burger-icon span:nth-child(1) {
    top: 10px;
}

.burger-icon span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.burger-icon span:nth-child(3) {
    bottom: 10px;
}

.burger-menu.active .burger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active .burger-icon span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: black;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease-in-out;
}

.burger-menu.active .menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.logo{
    font-weight:bold;
    font-size: 30px;
}
.nav ul{
list-style: none;
display: flex;
gap: 30px;
}
.search-form{
    border: 1px solid #00ffcc;
    display: inline-flex;
    padding: 0 20px;
    justify-content: space-between;
    align-items: center;
}
.search-form_txt{
    border: none;
    width: 200px;
    outline: none;
    font-size: 20px;
    padding-right: 10px;
    background-color: transparent;
}
.btn{
  background: #00ffcc;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 50%;
  cursor: pointer;
  transition:0.2s ease;
}
/* При наведении */
.btn:hover {
  background: #00ffcc;
  box-shadow: 0 0 15px rgba(0, 225, 225, 0.6);
}

.search-form_image{
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    cursor: pointer;
}

.container{
display: grid;
 grid-template-columns: 1fr 1fr 1fr;
 grid-template-rows: 800px 10vw 15r;
  margin-top: 50px;
   margin-left: 200px;
   margin-right: 50px;
   justify-content: center;
   gap: 20px;
  align-items: center;
  height: 100vh;
  background: black;
  overflow: visible;
}
.card{
  background: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;  
  transition: all 0.5s ease;
  border-radius: 12px;
  overflow: visible;
}
.card::before {
  content: '';
  position: absolute;
  background: linear-gradient(
    0deg, 
    transparent, 
    transparent 30%, 
    rgba(0,255,255,0.3)
  );
  transform: rotate(-45deg);
  transition: all 0.5s ease;
  opacity: 0;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0,255,255,0.5);
  z-index: 10;
}

.card:hover::before {
  opacity: 1;
  transform: rotate(-45deg) translateY(100%);
}
.card h2 {
  color: #0ff;
  font-size: 2rem;
  position: relative;
  z-index: 2;
}

.image{
    margin-bottom: 10px;
    height: 350px;
    width: 300px;
    margin-top: 40px;
}
.image img{
height: 300px;
width: 100%;
object-fit: cover;
border-radius: 7px;
}
.info h3{
font-size: 21px;
margin-bottom: 0;
}
.rating{
    margin-bottom: 0;
    padding-left: 0;
    list-style-type: none;
}
.rating li{
    display: inline-block;
    color: #ffc107;
}
.info-price{
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;

}
.and-to-cart {
  position: absolute;
  right: 15px;
  bottom: 15px;
  background: #00ffcc;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 255, 255, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
}

/* При наведении — лёгкое свечение */
.and-to-cart:hover {
  background: #00ffee;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
  transform: scale(1.05);
}


/* Визуальный отклик при фокусе (для клавиатуры) */
.and-to-cart:focus {
  outline: 2px solid #00ffee;
  outline-offset: 3px;
}
.price{
    font-weight: 700;
    font-size: 18px;
}
.color-white{
    color: white;
}
/* Адаптация планшет */
@media (max-width: 1024px) {

  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 30px;
  }

  .search-form {
    width: 100%;
    margin-top: 10px;
  }

  .nav ul {
    gap: 15px;
    flex-wrap: wrap;
  }

  .container {
    grid-template-columns: 1fr 1fr;
    margin: 100px 30px;
    gap: 25px;
  }

  .image img {
    height: 260px;
  }

  .card h2 {
    font-size: 1.5rem;
  }

  .logo {
    font-size: 26px;
  }
}

/* Адаптация телефон */
@media (max-width: 768px) {

  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
  }

  .logo {
    font-size: 22px;
  }

  .nav ul {
    display: none; /* можно скрыть меню и заменить бургером */
  }

  .burger-menu {
    display: block;
    position: absolute;
    right: 20px;
    top: 20px;
  }

  .search-form {
    width: 100%;
    padding: 5px 10px;
  }

  .search-form_txt {
    width: 100%;
    font-size: 16px;
  }

  .container {
    grid-template-columns: 1fr;
    margin: 120px 15px;
    gap: 20px;
  }

  .card {
    width: 100%;
    padding: 10px;
  }

  .image {
    margin: 0 auto;
    width: 90%;
  }

  .image img {
    width: 100%;
    height: auto;
  }

  .info h3 {
    font-size: 18px;
    text-align: center;
  }

  .info-price {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .and-to-cart {
    position: static;
    margin-top: 15px;
    width: 50px;
    height: 50px;
  }
}

/* Маленький экран (до 480px) */
@media (max-width: 480px) {
  .logo {
    font-size: 18px;
  }

  header {
    padding: 8px 15px;
  }

  .container {
    margin: 100px 10px;
  }

  .card {
    padding: 8px;
  }

  .image img {
    border-radius: 10px;
  }

  .btn {
    padding: 8px 16px;
    font-size: 14px;
  }
}